use proto_lib::proto_common::user_service::GetUserRequest;
use proto_lib::proto_common::user_service::user_service_client::{
    UserServiceClient

};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut client = UserServiceClient::connect("http://[::1]:9000").await?;

    let request = tonic::Request::new(GetUserRequest {
        id: "xieyinfeng".to_string(),
    });
    let response = client.get_user(request).await?;

    println!("getUser RESPONSE={:?}", response);
    Ok(())
}